﻿@using Smarly.Forum.Bussines.Model
@model Smarly.Forum.Bussines.Model.SectionModel

@{
	if (Model == null)
	{
		return;
	}
}


<div class="row-fluid">
	<div class="span12">
		<div class="block-white crumb">
			<div class="block-content">
				@{
					List<SectionModel> childs = Model.Parent.Children ?? new List<SectionModel>();
				}
				
				<div class="line">@Html.ActionLink("Staple forum", "Index", "Home") &gt; <span class="active">@Model.Parent.Name</span>

				</div>

				<div class="line">
					<img src="/img/navbits.png" class="mr10"/>
					@foreach (var child in childs)
					{
						if (child == Model)
						{
							<span class="active">@child.Name</span><span>&nbsp; &nbsp;</span>
						}
						else
						{
							@Html.ActionLink(child.Name, "Section", "Home", new {section = child.HashTag}, new {})<span>&nbsp; &nbsp;</span>
						}
					}
				</div>
			</div>
		</div>
	</div>
</div>